loadArchive

abstract suspend fun loadArchive(archiveUri: Uri, overrideEditorConfig: Boolean = false, waitForResources: Boolean = false, onProgress: (Int) -> Unit? = null): DesignBlock

Load the contents of a scene previously saved as an archive.

Cancelling the coroutine stops the download, and the current scene stays.

Return

the handle to the loaded scene.

Parameters

archiveUri

the resource of the scene archive file.

overrideEditorConfig

Whether to override editor configuration with settings and data from the scene file. Defaults to false.

waitForResources

Whether to wait for all resources to finish loading before returning. Defaults to false.

onProgress

Optional. Receives the percentage of the archive that the engine has read, from 0 to 100, as described for the load function that takes a Uri.